package com.rd.sys.dto.client.store;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Question {

    public enum TYPE {
        /**
         * 属性
         */
        Attribute(0),
        /**
         * 问卷
         */
        Question(1);
        private int code;

        TYPE(int code) {
            this.code = code;
        }

        public int getCode() {
            return this.code;
        }
    }

    public enum SHOW_TYPE {
        /**
         * 输入框
         */
        Input(0),
        /**
         * 下拉列表
         */
        List(1),
        /**
         * 单选Radio
         */
        Radio(2),
        /**
         * 多选Checkbox
         */
        Checkbox(3);
        private int code;

        SHOW_TYPE(int code) {
            this.code = code;
        }

        public int getCode() {
            return this.code;
        }
    }

    @JsonProperty("No")
    private Integer no;

    @JsonProperty("Name")
    private String name;

    @JsonProperty("Type")
    private Integer type;

    @JsonProperty("ShowType")
    private Integer showType;

    @JsonProperty("MatNumber")
    private Integer matNumber;

    @JsonProperty("OptionList")
    private List<QuestionOption> optionList;

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    public Integer getMatNumber() {
        return matNumber;
    }

    public void setMatNumber(Integer matNumber) {
        this.matNumber = matNumber;
    }

    public List<QuestionOption> getOptionList() {
        return optionList;
    }

    public void setOptionList(List<QuestionOption> optionList) {
        this.optionList = optionList;
    }
}
